﻿namespace Common
{
    public class ExamHelper
    {
        public static string GetInputTypeN(string inputType)
        {
            string result = string.Empty;
            switch (inputType)
            { 
                case "radio":
                    result = "单选";
                    break;
                case "checkbox":
                    result = "多选";
                    break;
                case "select":
                    result = "单选";
                    break;
                case "text":
                    result = "填空";
                    break;
                case "textarea":
                    result = "问答";
                    break;
            }
            return result;
        }


        /// <summary>
        /// 将排序int转成A、B、C
        /// </summary>
        public static string AbcBySort(int sort)
        {
            string[] Arr = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" };
            return Arr[sort - 1];
        }
    }

}
